package com.swt.testdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.swt.testdemo.config.ResponseBean;
import com.swt.testdemo.config.ResponseMessage;
import com.swt.testdemo.entity.SysUserEntity;
import com.swt.testdemo.form.AddUserForm;
import com.swt.testdemo.form.EditUserForm;
import com.swt.testdemo.form.UserListForm;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/11 11:06
 **/
public interface SysUserService extends IService<SysUserEntity> {

    ResponseBean createUser(AddUserForm form);

    ResponseMessage editUser(EditUserForm form);

    ResponseMessage deleteUser(Integer userId);

    ResponseMessage enableUser(Integer userId);

    ResponseMessage disableUser(Integer userId);

    ResponseMessage resetUserPassword(Integer userId);

    ResponseBean listUser(UserListForm form);

    ResponseBean listUserAsMap(String userFilter, String statusFilter);
}
